home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
WINICONS
/
V12N11.ZIP
/
ABOUT.ZIP
/
DEMOPROG.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-03-31
|
1KB
|
54 lines
{************************************************}
{ About box demo program }
{ Copyright (c) 1993 by Danny Thorpe }
{ }
{ for Borland Pascal 7.0 }
{************************************************}
program Demo;
uses Winprocs, Wintypes, OWindows, BWCC, About;
{$R demo.res}
const
cmAbout = 101;
idBitmap = 200;
CreditText: array[1..7] of PChar = (
'',
'This is where you would',
'put your own list of',
'names or secret message',
'to reward the users who',
'discover this.',
'');
type
PDemoMainWindow = ^TDemoMainWindow;
TDemoMainWindow = object(TMDIWindow)
procedure cmAbout(var Msg: TMessage); virtual cm_First + cmAbout;
end;
TDemoApp = object(TApplication)
procedure InitMainWindow; virtual;
end;
procedure TDemoMainWindow.cmAbout(var Msg: TMessage);
begin
Application^.ExecDialog(New(PAboutBox,
Init(@Self, 'Demo About Box',PChar(idBitmap), CreditText)));
end;
procedure TDemoApp.InitMainWindow;
begin
MainWindow := New(PDemoMainWindow, Init('Demo App',
LoadMenu(HInstance,'MainMenu')));
end;
var App: TDemoApp;
begin
App.Init('Demo');
App.Run;
App.Done;
end.